David Engster [Thu, 21 Mar 2013 22:11:03 +0000 (23:11 +0100)]
Merge with CEDET upstream (rev. 8499).
lisp/
* eieio/eieio-datadebug.el (data-debug/eieio-insert-slots):
Inhibit read only while inserting objects.
lisp/cedet/
* semantic.el (navigate-menu): Yank Tag :enable. Make sure
`senator-tag-ring' is bound.
(semantic-parse-region-default): Stop reversing the output of
parse-whole-stream.
(semantic-repeat-parse-whole-stream): Append returned tags
differently, so they come out in the right order.
* semantic/sb.el (semantic-sb-filter-tags-of-class): New option.
(semantic-sb-fetch-tag-table): Filter tags being bucketed to exclude
tags belonging to above filtered classes.
* semantic/find.el (semantic-filter-tags-by-class): New function.
* semantic/tag-ls.el (semantic-tag-similar-p-default): Add
short-circuit in case tag1 and 2 are identical.
* semantic/analyze/fcn.el
(semantic-analyze-dereference-metatype-stack): Use
`semantic-tag-similar-p' instead of 'eq' when comparing two tags
during metatype evaluation in case they are the same, but not the same
node. (Tweaked patch from Tomasz Gajewski) (Tiny change)
* semantic/db-find.el (semanticdb-partial-synchronize): Fix require to
semantic/db-typecache to be correct.
(semanticdb-find-tags-external-children-of-type): Make this a brutish
search by default.
* semantic/sort.el (semantic-tag-external-member-children-default):
When calling `semanticdb-find-tags-external-children-of-type', pass in
the input tag as the place to start searching for externally defined
methods.
* semantic/db-file.el (semanticdb-default-save-directory): Doc
fix: Add ref to default value.
* semantic/complete.el (semantic-complete-post-command-hook): When
detecting if cursor is outside completion area, do so if cursor moves
before start of overlay, or the original starting location of the
overlay (i.e., if user deletes past beginning of the overlay region).
(semantic-complete-inline-tag-engine): Initialize original start of
`semantic-complete-inline-overlay'.
* semantic/bovine/c.el (semantic-c-describe-environment): Update some
section titles. Test semanticdb table before printing it.
(semantic-c-reset-preprocessor-symbol-map): Update
`semantic-lex-spp-macro-symbol-obarray' outside the loop over all the
files contributing to its value.
(semantic-c-describe-environment): If there is an EDE project but no
spp symbols from it, say so.
* srecode/args.el (srecode-semantic-handle-:project): New argument
handler. Provide variable values if not in an EDE project.
* srecode/srt-mode.el (srecode-template-mode): Fix typo on srecode
name.
* srecode/cpp.el (srecode-semantic-handle-:c): Replace all characters
in FILENAME_SYMBOL that aren't valid CPP symbol chars.
* srecode/map.el (srecode-map-validate-file-for-mode): Force semantic
to load if it is not active in the template being added to the map.
* srecode/srt.el: Add local variables for setting the autoload file
name.
(srecode-semantic-handle-:srt): New autoload cookie
* ede.el (ede-apply-preprocessor-map): Apply map to
`semantic-lex-spp-project-macro-symbol-obarray' instead of the system
one. Add require for semantic.
* ede/proj-elisp.el (ede-update-version-in-source): In case a file has
both a version variable and a Version: comment, always use
`call-next-method'.
* ede/cpp-root.el (ede-set-project-variables): Deleted.
`ede-preprocessor-map' does the job this function was attempting to do
with :spp-table.
(ede-preprocessor-map): Update file tests to provide better messages.
Do not try to get symbols from a file that is the file in the current
buffer.
* ede/base.el (ede-project-placeholder): Add more documentation to
:file slot.
(ede-load-cache): Use `insert-file-contents' instead of
`find-file-noselect' in order to avoid activating other tools.
* semantic/bovine/c.el (semantic-get-local-variables): Also add a new
variable 'this' if we are in an inline member function. For detecting
this, we check overlays at point if there is a class spanning the
current function. Also, the variable 'this' has to be a pointer.
* semantic/bovine/gcc.el (semantic-gcc-setup): Fail gracefully when
querying g++ for defines returns an error.
* srecode/srt-mode.el:
* srecode/compile.el:
* semantic/elp.el:
* semantic/db-el.el:
* semantic/complete.el:
* ede.el:
* cogre.el:
* srecode/table.el:
* srecode/mode.el:
* srecode/insert.el:
* srecode/compile.el:
* semantic/decorate/include.el:
* semantic/db.el:
* semantic/adebug.el:
* ede/auto.el:
* srecode/dictionary.el:
* semantic/ede-grammar.el:
* semantic/db.el:
* semantic/db-find.el:
* semantic/db-file.el:
* semantic/complete.el:
* semantic/bovine/c.el:
* semantic/analyze.el:
* ede/util.el:
* ede/proj.el:
* ede/proj-elisp.el:
* ede/pconf.el:
* ede/locate.el:
* ede.el: Adapt to EIEIO namespace cleanup: Rename `object-name' to
`eieio-object-name', `object-set-name-string' to
`eieio-object-set-name-string', `object-class' to
`eieio-object-class', `class-parent' to `eieio-class-parent',
`class-parents' to `eieio-class-parents', `class-children' to
`eieio-class-children', `object-name-string' to
`eieio-object-name-string', `object-class-fast' to
`eieio--object-class'. Also replace direct access with new accessor
functions.
* ede/cpp-root.el (ede-project-autoload, initialize-instance): Fix EDE
file symbol to match rename. Fix ede-cpp-root symbol to include
-project in name.
* cedet-files.el (cedet-files-list-recursively): New function.
Recursively find files whose names are matching to given regex
* ede.el (ede-current-project): Rewrite to avoid imperative style.
* ede/files.el (ede-find-file): Simplify code.
* ede/base.el (ede-normalize-file/directory): Add function to
normalize :file or :directory slots if they are missing.
* ede/cpp-root.el (ede-cpp-root-project): Add compile-command slot.
(project-compile-project): Compiles project using value specified in
:compule-command slot or in compile-command local variable. Value of
slot or local variable could be string or function that receives
project and should return string that will be invoked as command.
(project-compile-target): Invokes compilation of whole project
* ede/files.el (ede-find-project-root): New function to find root of
project that contains specific file.
(ede-files-find-existing): New function which checks presence of given
directory in the list of registered projects.
etc/
* srecode/ede-autoconf.srt: Change Copyright to FSF.
(ede-empty): Change AC_INIT to use PROJECT_NAME, and PROJECT_VERSION.
* srecode/ede-make.srt (ede-empty): Add a dependency on :project. Add
header comment specifying the project's relative path.
* srecode/c.srt (header_guard): Upcase the filename symbol.
* srecode/java.srt (empty-main): New.
(class-tag): Decapitalize class.
Daniel Colascione [Wed, 13 Mar 2013 19:28:50 +0000 (11:28 -0800)]
* emacs.c (main): Call syms_of_cygw32 on CYGWIN non-NTGUI builds
too so that these builds can use Cygwin's file conversion
functions. (We've been building and linking cygw32.o all along
and just not using it.)
Karl Fogel [Wed, 13 Mar 2013 18:54:05 +0000 (13:54 -0500)]
* saveplace.el (save-place-alist-to-file): Don't sort
`save-place-alist', just pretty-print it (bug#13882).
Paul Eggert [Wed, 13 Mar 2013 18:42:22 +0000 (11:42 -0700)]
File synchronization fixes.
* admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove.
* admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync.
* configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
(fsync): Remove check; now done by gnulib.
* lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib-src/Makefile.in (LIB_FDATASYNC): New macro.
(emacsclient${EXEEXT}): Use it.
* lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't
care about metadata. Keep trying if interrupted.
* lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
fsync is available everywhere (or there is a substitute). Don't
report an error if fsync returns EINVAL.
* nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii.
* src/Makefile.in (LIB_FDATASYNC): New macro.
(LIBES): Use it.
* src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
* src/fileio.c (Fwrite_region, write_region_inhibit_fsync):
Don't worry about HAVE_FSYNC, since a substitute fsync is
available if the system lacks one.
(Fwrite_regin): Retry fsync if interrupted.
Fixes: debbugs:13944
Eli Zaretskii [Wed, 13 Mar 2013 17:31:06 +0000 (19:31 +0200)]
Fix bug #13937 with creating a maximized frame on MS-Windows.
src/w32term.c (w32_read_socket): If we Emacs frame is being
activated, call w32fullscreen_hook, to make sure the new frame
dimensions are in effect.
Dmitry Antipov [Wed, 13 Mar 2013 15:41:54 +0000 (19:41 +0400)]
* window.c (Fscroll_other_window): Use SET_PT_BOTH because both
character and byte positions can be obtained from marker.
Dmitry Antipov [Wed, 13 Mar 2013 15:21:46 +0000 (19:21 +0400)]
* xdisp.c (init_iterator): Simplify because both character and byte
positions are either specified or -1. Add eassert. Adjust comment.
Michael Albinus [Wed, 13 Mar 2013 11:42:21 +0000 (12:42 +0100)]
Fix last change.
Michael Albinus [Wed, 13 Mar 2013 11:38:13 +0000 (12:38 +0100)]
* net/tramp-sh.el (tramp-sh-handle-insert-directory): Check,
whether `default-file-name-coding-system' is bound. It isn't in
XEmacs.
Glenn Morris [Wed, 13 Mar 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.
Paul Eggert [Wed, 13 Mar 2013 07:27:34 +0000 (00:27 -0700)]
Static checking by Sun C 5.12.
* lib-src/etags.c (analyse_regex): Omit unreachable code.
* src/alloc.c (buffer_memory_full) [REL_ALLOC]:
* src/bytecode.c (exec_byte_code):
* src/dispnew.c (init_display):
* src/eval.c (error):
* src/fileio.c (Fsubstitute_in_file_name):
* src/keyboard.c (Fevent_convert_list):
* src/keymap.c (Fsingle_key_description):
* src/term.c (maybe_fatal, fatal):
* src/xfns.c (Fx_display_backing_store, Fx_display_visual_class):
* src/xsmfns.c (Fhandle_save_session):
Omit unreachable code.
* src/keymap.c (map_keymap_char_table_item): Cast void * to
a function pointer type; the C Standard requires this.
Paul Eggert [Wed, 13 Mar 2013 07:15:17 +0000 (00:15 -0700)]
Merge from gnulib: putenv: port to Solaris 10.
Paul Eggert [Wed, 13 Mar 2013 05:04:46 +0000 (22:04 -0700)]
* sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.
Include <sys/param.h> unconditionally, as that works elsewhere and
is simpler here. Include <sys/sysctl.h> if DARWIN_OS ||
__FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
and FreeBSD now.
Stefan Monnier [Wed, 13 Mar 2013 02:19:31 +0000 (22:19 -0400)]
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Don't use
backquotes for `obsolete'.
Fixes: debbugs:13929
Stefan Monnier [Wed, 13 Mar 2013 02:08:33 +0000 (22:08 -0400)]
* lisp/international/mule.el (find-auto-coding): Include file name in
obsolescence warning.
Fixes: debbugs:13922
Paul Eggert [Wed, 13 Mar 2013 01:05:40 +0000 (18:05 -0700)]
* movemail.c: Don't grant more read permissions than necessary.
The old 0333 dates back to before we called setuid,
so it was needed back then to ensure user-readability,
but 0377 should suffice now.
Paul Eggert [Wed, 13 Mar 2013 00:54:47 +0000 (17:54 -0700)]
* movemail.c (main): Call umask on all systems.
This is OK since Emacs already assumes umask elsewhere.
Paul Eggert [Wed, 13 Mar 2013 00:38:42 +0000 (17:38 -0700)]
Merge from gnulib.
This incorporates:
2013-03-12 mktime: fix configure typo
2013-03-11 regex: port to mingw's recent addition of undeclared alarm
2013-03-11 putenv: avoid compilation warning on mingw
2013-03-11 unistd: don't prevent Tru64 Unix from using gnulib strtod.
Paul Eggert [Tue, 12 Mar 2013 23:53:35 +0000 (16:53 -0700)]
Mention etc/HELLO.
Paul Eggert [Tue, 12 Mar 2013 20:54:53 +0000 (13:54 -0700)]
Remove incorrect comment about hanja3.el.
Paul Eggert [Tue, 12 Mar 2013 16:53:31 +0000 (09:53 -0700)]
Add coding tags for iso-2022-7bit files that are not already tagged.
* HELLO, tutorials/TUTORIAL.ko, tutorials/TUTORIAL.th:
Add coding tag. For TUTORIAL.th this prevents Emacs from
misinterpreting the file.
Ted Zlatanov [Tue, 12 Mar 2013 15:49:26 +0000 (11:49 -0400)]
* progmodes/cfengine.el: add CFEngine 3-specific indentation.
Paul Eggert [Tue, 12 Mar 2013 02:40:08 +0000 (19:40 -0700)]
Prefer UTF-8 in documentation.
Paul Eggert [Tue, 12 Mar 2013 02:25:36 +0000 (19:25 -0700)]
Prefer UTF-8 in commentary.
Stefan Monnier [Tue, 12 Mar 2013 02:08:21 +0000 (22:08 -0400)]
Use locate-user-emacs-file.
* lisp/type-break.el (type-break-file-name):
* lisp/textmodes/remember.el (remember-data-file):
* lisp/strokes.el (strokes-file):
* lisp/shadowfile.el (shadow-initialize):
* lisp/saveplace.el (save-place-file):
* lisp/ps-bdf.el (bdf-cache-file):
* lisp/progmodes/idlwave.el (idlwave-config-directory):
* lisp/net/quickurl.el (quickurl-url-file):
* lisp/international/kkc.el (kkc-init-file-name):
* lisp/ido.el (ido-save-directory-list-file):
* lisp/emulation/viper.el (viper-custom-file-name):
* lisp/emulation/vip.el (vip-startup-file):
* lisp/calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top):
* lisp/calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.
Paul Eggert [Tue, 12 Mar 2013 01:14:08 +0000 (18:14 -0700)]
Switch encodings of tutorials, thai-word to UTF-8.
* etc/refcards/ru-refcard.tex:
* etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.bg, etc/tutorials/TUTORIAL.cn:
* etc/tutorials/TUTORIAL.cs, etc/tutorials/TUTORIAL.de, etc/tutorials/TUTORIAL.eo:
* etc/tutorials/TUTORIAL.es, etc/tutorials/TUTORIAL.fr, etc/tutorials/TUTORIAL.it:
* etc/tutorials/TUTORIAL.nl, etc/tutorials/TUTORIAL.pl, etc/tutorials/TUTORIAL.pt_BR:
* etc/tutorials/TUTORIAL.ro, etc/tutorials/TUTORIAL.sk, etc/tutorials/TUTORIAL.sv:
* etc/tutorials/TUTORIAL.zh:
* lisp/language/thai-word.el:
Switch to UTF-8.
Fixes: debbugs:13880
Paul Eggert [Mon, 11 Mar 2013 22:35:04 +0000 (15:35 -0700)]
* admin/notes/unicode: Fix "the these" typo.
Paul Eggert [Mon, 11 Mar 2013 22:32:07 +0000 (15:32 -0700)]
* notes/unicode: Improve notes about Emacs source file encoding.
Stefan Monnier [Mon, 11 Mar 2013 20:37:00 +0000 (16:37 -0400)]
* lisp/recentf.el (recentf-save-file): Use locate-user-emacs-file.
Fixes: debbugs:13870
Thierry Volpiatto [Mon, 11 Mar 2013 18:30:49 +0000 (14:30 -0400)]
* lisp/net/net-utils.el (net-utils-remove-ctrl-m-filter):
Use with-current-buffer and don't move point.
(net-utils-run-simple): Remove useless code.
(net-utils-remove-ctl-m): Remove unused custom.
Per Starbäck [Mon, 11 Mar 2013 17:45:23 +0000 (13:45 -0400)]
* lisp/international/characters.el (glyphless-set-char-table-range): New fun.
(update-glyphless-char-display): Use it.
Fixes: debbugs:13744
Ted Zlatanov [Mon, 11 Mar 2013 17:21:31 +0000 (13:21 -0400)]
Update ChangeLog for 2013-03-11T17:17:13Z!tzz@lifelogs.com.
Ted Zlatanov [Mon, 11 Mar 2013 17:17:13 +0000 (13:17 -0400)]
* progmodes/cfengine.el: Update for CFEngine 3.4.2 and higher.
Jean-Philippe Gravel [Mon, 11 Mar 2013 17:13:39 +0000 (13:13 -0400)]
* lisp/progmodes/gdb-mi.el: Speed up initialization. Use lexical-binding.
Fix up docstring according to conventions.
(gdbmi-debug-mode): New var.
(gdbmi-start-with, gdbmi-same-start, gdbmi-is-number, gdbmi-bnf-init)
(gdbmi-bnf-output, gdbmi-bnf-skip-unrecognized, gdbmi-bnf-gdb-prompt)
(gdbmi-bnf-result-record, gdbmi-bnf-out-of-band-record)
(gdbmi-bnf-async-record, gdbmi-bnf-stream-record)
(gdbmi-bnf-console-stream-output, gdbmi-bnf-target-stream-output)
(gdbmi-bnf-log-stream-output, gdbmi-bnf-result-and-async-record-impl)
(gdbmi-bnf-incomplete-record-result): New functions.
(gdb-car<): Remove function.
(gdbmi-record-list): Remove variable.
(gdbmi-bnf-state, gdbmi-bnf-offset): New vars.
(gdbmi-bnf-result-state-configs): New const.
(gud-gdbmi-marker-filter): Rewrite.
(gdb-ignored-notification, gdb-thread-created, gdb-thread-exited)
(gdb-thread-selected, gdb-running, gdb-starting, gdb-stopped):
Add `token' argument.
(gdb-done, gdb-error): New functions.
(gdb-done-or-error): Add `is-complete' argument. Change arg order.
Fixes: debbugs:10580
Ted Zlatanov [Mon, 11 Mar 2013 17:05:30 +0000 (13:05 -0400)]
* control.texi (Pattern matching case statement): Fix typo.
Glenn Morris [Mon, 11 Mar 2013 16:31:55 +0000 (09:31 -0700)]
Merge from emacs-24; up to 2012-12-25T17:37:29Z!eliz@gnu.org
Stefan Monnier [Mon, 11 Mar 2013 14:08:44 +0000 (10:08 -0400)]
* lisp/term/xterm.el (xterm--report-background-handler): Don't burp
upon timeout.
(xterm--version-handler): Extract from terminal-init-xterm.
(xterm--query): Don't mishandle timeout. Remove debugging messages.
Allow multiple handlers.
(terminal-init-xterm): Handle OSX's Terminal.app's incorrect answer.
Fixes: debbugs:6758
Glenn Morris [Mon, 11 Mar 2013 08:09:21 +0000 (01:09 -0700)]
Small updates for make-manuals admin scripts
* admin/admin.el (make-manuals): Add emacs-lisp-intro and some more
doc/misc manuals.
(manual-html-mono, manual-html-node, manual-txt): Pass -I to makeinfo.
Stefan Monnier [Mon, 11 Mar 2013 04:24:15 +0000 (00:24 -0400)]
* lisp/term/xterm.el: Don't discard input. Use lexical-binding.
(xterm--report-background-handler, xterm--query): New functions.
(terminal-init-xterm): Use them.
Fixes: debbugs:6758
Michael Mauger [Mon, 11 Mar 2013 04:09:37 +0000 (00:09 -0400)]
* progmodes/sql.el Version 3.2
Please note that my address changed to <michael@mauger.com>; the
<mmaug@yahoo.com> address remains active.
(sql-connection-alist): Updates documentation to fix bug#13715.
(sql-connect): Handle missing `sql-connection-alist' correctly.
(sql-mode-oracle-font-lock-keywords): Add missing keywords.
(sql-magic-go, sql-magic-semicolon): Mark with `delete-selection'
property.
(sql-default-value): New function.
(sql-get-login-ext, sql-get-login): Fixes bug where buffer-local
values were not used.
(sql-rename-buffer): Make sure alternate buffer name has no text
properties.
(sql-input-sender, sql-execute-feature): Fetch variable with
`buffer-local-value' rather than `with-current-buffer'.
(sql-*): Use #' function syntax consistently.
(sql-*): Use message/error/user-error consistently.
Paul Eggert [Mon, 11 Mar 2013 04:07:45 +0000 (21:07 -0700)]
Spelling fixes.
Paul Eggert [Mon, 11 Mar 2013 04:02:06 +0000 (21:02 -0700)]
* insdel.c (adjust_after_replace): Use bool for boolean.
Stefan Monnier [Mon, 11 Mar 2013 02:56:18 +0000 (22:56 -0400)]
* lisp/xt-mouse.el (xterm-mouse-event-read): Remove.
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): Use read-event instead.
Glenn Morris [Mon, 11 Mar 2013 02:35:23 +0000 (19:35 -0700)]
Add 24.3 release to ChangeLogs
Stefan Monnier [Mon, 11 Mar 2013 01:17:40 +0000 (21:17 -0400)]
* src/keyboard.c: Move keyboard decoding to read_key_sequence.
(decode_keyboard_code): Remove.
(tty_read_avail_input): Don't try to decode input.
(read_decoded_char): New function.
(read_key_sequence): Use it.
Daniel Colascione [Sun, 10 Mar 2013 22:55:25 +0000 (14:55 -0800)]
2013-03-10 Daniel Colascione <dancol@dancol.org>
* w32term.h (GUISTR, GUI_ENCODE_FILE, GUI_ENCODE_SYSTEM, GUI_FN)
(GUI_SDATA, guichar_t): Macros to abstract out differences between
NTGUI_UNICODE and !NTGUI_UNICODE builds, some moved out of
w32fns.c.
* w32term.c (construct_drag_n_drop): Use the above macros to make
drag-and-drop work for non-ASCII filenames in cygw32 builds.
* w32fns.c (x_set_name, x_set_title): Use the above macros to
properly display non-ASCII frame titles in cygw32 builds.
* w32fns.c (Fw32_shell_execute): Use the above macros to properly
call ShellExecute in cygw32 builds.
* w32fn.c (Fx_file_dialog): Use the above macros to simplify the
common file dialog code.
* w32fns.c (Ffile_system_info): Remove from cygw32 builds, which
can just use du like other systems.
* coding.c (from_unicode_buffer): Declare.
* coding.c (from_unicode_buffer): Implement.
Stefan Monnier [Sun, 10 Mar 2013 21:52:01 +0000 (17:52 -0400)]
* src/lread.c: Minor cleanup.
(FROM_FILE_P): New macro.
(skip_dyn_bytes, unreadchar, read1): Use it.
(read_list): Consolidate duplicated code.
Stefan Monnier [Sun, 10 Mar 2013 21:46:55 +0000 (17:46 -0400)]
* src/bytecode.c (struct byte_stack): Remove `constants' when unused.
Stefan Monnier [Sun, 10 Mar 2013 21:44:31 +0000 (17:44 -0400)]
* lisp/term/xterm.el (xterm-function-map): Support format used with
formatOtherKeys=1.
Fixes: debbugs:13839
Stefan Monnier [Sun, 10 Mar 2013 21:40:55 +0000 (17:40 -0400)]
* lisp/emacs-lisp/byte-run.el (dont-compile): Declare obsolete.
(with-no-warnings): Use `declare'.
Stefan Monnier [Sun, 10 Mar 2013 21:39:11 +0000 (17:39 -0400)]
* lisp/whitespace.el (whitespace-enable-predicate): New variable.
(whitespace-enable-predicate): Use it.
Stefan Monnier [Sun, 10 Mar 2013 21:37:42 +0000 (17:37 -0400)]
* lisp/comint.el: Use with-silent-modifications.
(comint-send-input, comint-snapshot-last-prompt)
(comint-output-filter, comint-update-fence): Use with-silent-modifications.
Eli Zaretskii [Sun, 10 Mar 2013 17:28:04 +0000 (19:28 +0200)]
Use macros from dispextern.h where appropriate.
src/xdisp.c (display_tool_bar_line, redisplay_tool_bar)
(redisplay_internal, set_cursor_from_row, try_window)
(try_window_id, dump_glyph_row, extend_face_to_end_of_line)
(display_line, notice_overwritten_cursor)
(mouse_face_from_buffer_pos, note_mouse_highlight): Use
MATRIX_ROW_DISPLAYS_TEXT_P.
(note_mouse_highlight): Use MATRIX_ROW_GLYPH_START.
(mouse_face_from_string_pos, fast_find_string_pos): Use
MATRIX_ROW_VPOS.
src/xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
src/w32fns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P.
src/xdisp.c (try_cursor_movement): Use MATRIX_ROW and
MATRIX_MODE_LINE_ROW.
src/dispnew.c (update_window): Use MATRIX_ROW and MATRIX_MODE_LINE_ROW.
Kenichi Handa [Sun, 10 Mar 2013 15:06:04 +0000 (00:06 +0900)]
Fix previous change.
Kenichi Handa [Sun, 10 Mar 2013 14:43:58 +0000 (23:43 +0900)]
merge trunk
Kenichi Handa [Sun, 10 Mar 2013 14:36:35 +0000 (23:36 +0900)]
On file insertion, skip decoding if all bytes are ASCII.
Jambunathan K [Sun, 10 Mar 2013 08:44:07 +0000 (14:14 +0530)]
Provide for customizing default regexp in occur commands (Bug#13892).
* lisp/replace.el (occur-read-regexp-defaults-function): New var.
(occur-read-regexp-defaults): New defun.
(occur-read-primary-args): Propagate above change.
Glenn Morris [Sun, 10 Mar 2013 02:18:49 +0000 (18:18 -0800)]
* admin/admin.el (add-release-logs): Use UTC for release date.
Glenn Morris [Sun, 10 Mar 2013 02:15:08 +0000 (18:15 -0800)]
Fix typo in previous
Glenn Morris [Sun, 10 Mar 2013 02:14:29 +0000 (18:14 -0800)]
Add note about release candidate
Jay Belanger [Sat, 9 Mar 2013 23:36:02 +0000 (17:36 -0600)]
* doc/misc/calc.texi (Basic Operations on Units): Streamline some
descriptions.
Glenn Morris [Sat, 9 Mar 2013 20:22:27 +0000 (12:22 -0800)]
* admin.el: Comment
Add missing ChangeLog portion for previous change.
Glenn Morris [Sat, 9 Mar 2013 20:19:41 +0000 (12:19 -0800)]
* admin/admin.el (add-release-logs): Provide interactive defaults.
Allow specification of the release date.
Eli Zaretskii [Sat, 9 Mar 2013 18:09:33 +0000 (20:09 +0200)]
coding.c (to_unicode): Fix a typo in a comment.
Stefan Monnier [Sat, 9 Mar 2013 17:14:24 +0000 (12:14 -0500)]
* lisp/mouse.el (mouse-drag-track): Remove left-over debugging code.
Michael Albinus [Sat, 9 Mar 2013 11:06:23 +0000 (12:06 +0100)]
Major rewrite due to changed D-Bus interface of GVFS 1.14.
* net/tramp-gvfs.el (top): Extend check for gvfs availability.
(tramp-gvfs-methods-mounttracker, tramp-gvfs-listmounts)
(tramp-gvfs-mountlocation, tramp-gvfs-mountlocation-signature):
New defconst.
(tramp-gvfs-file-name-handler-alist) [directory-files]:
[directory-files-and-attributes, file-exists-p, file-modes]: Use
Tramp default handler.
[file-acl, file-selinux-context, process-file, set-file-acl]:
[set-file-modes, set-file-selinux-context, shell-command]:
[start-file-process ]: Remove handler.
[verify-visited-file-modtime]: New handler.
(tramp-gvfs-dbus-string-to-byte-array)
(tramp-gvfs-dbus-byte-array-to-string): New defuns. Replace all
calls of `dbus-string-to-byte-array' and
`tramp-gvfs-dbus-byte-array-to-string'.
(tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-delete-directory)
(tramp-gvfs-handle-delete-file, tramp-gvfs-handle-file-attributes)
(tramp-gvfs-handle-file-directory-p)
(tramp-gvfs-handle-file-executable-p)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-file-writable-p)
(tramp-gvfs-handle-insert-directory)
(tramp-gvfs-handle-insert-file-contents)
(tramp-gvfs-handle-make-directory, tramp-gvfs-handle-rename-file)
(tramp-gvfs-handle-set-visited-file-modtime)
(tramp-gvfs-handle-write-region): Rewrite.
(tramp-gvfs-handle-file-acl)
(tramp-gvfs-handle-file-selinux-context)
(tramp-gvfs-handle-process-file, tramp-gvfs-handle-set-file-acl)
(tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-selinux-context)
(tramp-gvfs-handle-shell-command)
(tramp-gvfs-handle-start-file-process)
(tramp-gvfs-handle-verify-visited-file-modtime): Remove defuns.
(tramp-gvfs-url-file-name): Do not use `file-truename', we work
over the symlinks. Fix user handling.
(top, tramp-gvfs-handler-mounted-unmounted): Handle different names
of the D-Bus signals.
(tramp-gvfs-connection-mounted-p): Handle different names of the
D-Bus methods.
(tramp-gvfs-mount-spec-entry): New defun.
(tramp-gvfs-mount-spec): Use it.
(tramp-gvfs-maybe-open-connection): Check, that in case of "smb"
there is a share name. Handle different names of the D-Bus
signals and methods.
(tramp-gvfs-maybe-open-connection): Set connection properties
needed for `tramp-check-cached-permissions'.
(tramp-gvfs-send-command): Apply `tramp-gvfs-maybe-open-connection'.
Return t or nil.
* net/tramp.el (tramp-backtrace): Move up.
(tramp-error): Apply a backtrace into the debug buffer when
`tramp-verbose > 9.
(tramp-file-mode-type-map, tramp-file-mode-from-int)
(tramp-file-mode-permissions, tramp-get-local-uid)
(tramp-get-local-gid, tramp-check-cached-permissions): Move from
tramp-sh.el.
* net/tramp-sh.el (tramp-file-mode-type-map)
(tramp-check-cached-permissions, tramp-file-mode-from-int)
(tramp-file-mode-permissions, tramp-get-local-uid)
(tramp-get-local-gid): Move to tramp.el.
Stefan Monnier [Sat, 9 Mar 2013 04:15:53 +0000 (23:15 -0500)]
Separate mouse-1-click-follows-link from mouse-drag-region.
* lisp/mouse.el (mouse--down-1-maybe-follows-link): New function.
(key-translation-map): Use it to implement mouse-1-click-follows-link.
(mouse-drag-line, mouse-drag-track): Remove mouse-1-click-follows-link code.
(mouse--remap-link-click-p): Remove.
* src/keyboard.c (access_keymap_keyremap): Accept nil return value from
functions to mean "no change".
* src/keyboard.h (EVENT_START, EVENT_END, POSN_WINDOW, POSN_POSN)
(POSN_WINDOW_POSN, POSN_TIMESTAMP): Be careful since events may come
from Elisp via unread-command-events.
Jay Belanger [Sat, 9 Mar 2013 02:27:46 +0000 (20:27 -0600)]
* refcards/calccard.tex: Remove incorrect entry.
Paul Eggert [Fri, 8 Mar 2013 21:37:41 +0000 (13:37 -0800)]
region-cache.c, scroll.c, search.c: Use bool for booleans.
* lisp.h (compile_pattern):
* scroll.c (do_scrolling, do_direct_scrolling):
* search.c (struct regexp_cache, compile_pattern_1)
(compile_pattern, string_match_1, search_command)
(trivial_regexp_p, search_buffer, Freplace_match, match_limit)
(search_regs_saved, Fregexp_quote):
Use bool for boolean.
* region-cache.c (region_cache_forward, region_cache_backward):
Fix comments to match code: these functions return int, not boolean.
Dmitry Antipov [Fri, 8 Mar 2013 09:34:35 +0000 (13:34 +0400)]
* search.c (find_newline): Accept start and end byte positions
as arguments and allow -1 if not known.
(find_newline_no_quit): Likewise for start position.
* lisp.h (find_newline, find_newline_no_quit): Adjust prototype.
* bidi.c (bidi_find_paragraph_start): Pass byte position to
find_newline_no_quit, thus eliminating CHAR_TO_BYTE.
* editfns.c (Fconstrain_to_field): Break long line. Adjust
call to find_newline.
* indent.c (vmotion): Adjust calls to find_newline_no_quit.
Use DEC_BOTH to start next search from the previous buffer
position, where appropriate.
* xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
(get_visually_first_element, move_it_vertically_backward): Likewise.
Obtain byte position from the display iterator, where appropriate.
Glenn Morris [Fri, 8 Mar 2013 08:37:59 +0000 (00:37 -0800)]
* doc/misc/faq.texi (Top): Don't say this was updated @today.
That's irrelevant and leads to spurious diffs.
Glenn Morris [Fri, 8 Mar 2013 08:11:59 +0000 (00:11 -0800)]
Fix doc typo in previous change
Glenn Morris [Fri, 8 Mar 2013 08:11:28 +0000 (00:11 -0800)]
ChangeLog entries should be attributed to the author of the changes
Glenn Morris [Fri, 8 Mar 2013 08:04:30 +0000 (00:04 -0800)]
Merge from emacs-24; up to 2012-12-25T15:07:59Z!dmantipov@yandex.ru
Bastien Guerry [Fri, 8 Mar 2013 06:37:21 +0000 (07:37 +0100)]
Fix critical bug in Org.
Jambunathan K [Fri, 8 Mar 2013 04:18:16 +0000 (09:48 +0530)]
Provide for customizing default regexp in hi-lock commands (Bug#13892).
* lisp/hi-lock.el (hi-lock-read-regexp-defaults-function): New var.
(hi-lock-read-regexp-defaults): New defun.
(hi-lock-line-face-buffer, hi-lock-face-buffer)
(hi-lock-face-phrase-buffer): Propagate above change. Update
docstring.
* lisp/subr.el (find-tag-default-as-regexp): New defun.
* lisp/replace.el (read-regexp): Propagate above change.
Paul Eggert [Fri, 8 Mar 2013 02:32:21 +0000 (18:32 -0800)]
print.c, process.c: Use bool for booleans.
* lisp.h (wait_reading_process_output):
* print.c (print_output_debug_flag, PRINTDECLARE, printchar)
(strout, debug_output_compilation_hack, float_to_string, print)
(print_object):
* process.c (kbd_is_on_hold, inhibit_sentinels, process_output_skip)
(decode_status, status_message, create_process, create_pty)
(Fmake_network_process, Fnetwork_interface_info)
(wait_reading_process_output, read_process_output)
(write_queue_push, write_queue_pop, process_send_signal)
(handle_child_signal, keyboard_bit_set, kbd_on_hold_p):
* process.h (struct Lisp_Process, inhibit_sentinels, kbd_on_hold_p):
Use bool for booleans.
* process.c (Fnetwork_interface_list): Remove unused local.
(connect_counter): Now EMACS_INT, not int.
Jay Belanger [Fri, 8 Mar 2013 02:11:25 +0000 (20:11 -0600)]
* doc/misc/calc.texi (Basic Operations on Units): Fix
cross-reference.
* calc/calc-units.el (calc-convert-units): Fix the way that default
new units are stored.
Dmitry Antipov [Thu, 7 Mar 2013 23:37:36 +0000 (03:37 +0400)]
* bidi.c (bidi_fetch_char): Swap first and second arguments
to match other functions accepting character and byte positions.
Adjust comment.
(bidi_resolve_explicit_1, bidi_level_of_next_char): Adjust users.
(bidi_paragraph_init): Likewise. Use DEC_BOTH which is faster
when you need just to move to the previous buffer position.
* xdisp.c (Fcurrent_bidi_paragraph_direction): Use DEC_BOTH.
Karl Fogel [Thu, 7 Mar 2013 22:35:47 +0000 (16:35 -0600)]
* bookmark.el: Define a face to highlight bookmark names in
bookmark menu buffers, where the default is a bold face similarly
to buffer names in buffer menu buffers. Patch by Matthias Meulien
<orontee {_AT_} gmail.com>.
(bookmark-menu-bookmark): New face to highlight bookmark names.
(bookmark-insert-location): Removes dupplicated text property to
conform to buffer list (see `list-buffers')
(bookmark-bmenu-list, bookmark-bmenu-hide-filenames): Apply face
`bookmark-menu-bookmark' to bookmark names.
Karl Fogel [Thu, 7 Mar 2013 22:33:22 +0000 (16:33 -0600)]
* bookmark.el: Display the bookmark list header similarly to the
buffer list header (see `list-buffers'), where the default is now
an immovable/immutable header line. Patch by Matthias Meulien
<orontee {_AT_} gmail.com> with a few tweaks by me.
(bookmark-bmenu-use-header-line): New variable.
(bookmark-bmenu-inline-header-height): New name for
`bookmark-bmenu-header-height', to avoid confusion with the code
for the new immovable header. All references changed.
(bookmark-bmenu-set-header): New function.
(bookmark-bmenu-list, bookmark-bmenu-toggle-filenames):
Conditionalize header construction accordingly.
(bookmark-bmenu-ensure-position): Conditionalize the skipping of
the inline header height.
(bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames):
Conditionalize the skipping of the inline header height.
Dmitry Gutov [Thu, 7 Mar 2013 16:08:33 +0000 (20:08 +0400)]
* lisp/progmodes/js.el (js--multi-line-declaration-indentation): Merge
from js2-mode (https://github.com/mooz/js2-mode/issues/89).
Eli Zaretskii [Thu, 7 Mar 2013 11:31:07 +0000 (13:31 +0200)]
src/.gdbinit (prowlims): Display the enabled_p flag of the row.
Katsumi Yamaoka [Thu, 7 Mar 2013 10:24:23 +0000 (10:24 +0000)]
doc/misc/gnus-faq.texi (FAQ 3-11): Now Gnus supports POP3 UIDL
Paul Eggert [Thu, 7 Mar 2013 07:28:51 +0000 (23:28 -0800)]
Specify utf-8, not iso-8859-1, for ASCII files.
Glenn Morris [Thu, 7 Mar 2013 07:03:18 +0000 (23:03 -0800)]
Mention checking autotools when testing tarfile.
Dmitry Antipov [Thu, 7 Mar 2013 04:42:59 +0000 (08:42 +0400)]
Avoid character to byte conversions in motion subroutines.
* indent.h (compute_motion, vmotion): Add byte position argument.
* indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE.
Add eassert.
(Fcompute_motion): Break long line. Adjust call to compute_motion.
Use list5 for return value.
(vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE.
Adjust comments, style and calls to compute_motion.
(Fvertical_motion): Adjust call to vmotion.
* window.c (Fdelete_other_windows_internal): Record window start
byte position and adjust call to vmotion.
(window_scroll_line_based): Likewise with call to compute_motion.
Use SET_PT_BOTH.
(Frecenter): Adjust calls to vmotion.
Dmitry Antipov [Thu, 7 Mar 2013 03:01:17 +0000 (07:01 +0400)]
* lisp.h (list2i, list3i): New functions.
(list4i): Move from window.c and make LISP_INLINE.
* editfns.c (make_lisp_time):
* fns.c (Flocale_info):
* keyboard.c (parse_modifiers):
* xterm.c (x_ewmh_activate_frame): Use list2i.
* instel.c (signal_after_change):
* nsfns.m (Fx_server_version, Fxw_color_values):
* w32fns.c (Fxw_color_values, Fx_server_version):
* xfns.c (Fxw_color_values, Fx_server_version): Use list3i.
* fileio.c (Fvisited_file_modtime):
* nsfns.m (Fns_display_usable_bounds):
* w32.c (ltime): Use list4i.
Dmitry Gutov [Wed, 6 Mar 2013 18:56:29 +0000 (22:56 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function): Only
propertize regexp when not inside a string.
Fixes: debbugs:13885
Eli Zaretskii [Wed, 6 Mar 2013 16:35:23 +0000 (18:35 +0200)]
Rename find_next_newline to find_newline_no_quit.
src/search.c (find_newline_no_quit): Rename from find_next_newline.
Add commentary.
src/lisp.h (find_newline_no_quit): Rename prototype.
src/xdisp.c (back_to_previous_line_start)
(forward_to_next_line_start, get_visually_first_element)
(move_it_vertically_backward): Callers of find_newline_no_quit changed.
src/indent.c (vmotion): Callers of find_newline_no_quit changed.
src/bidi.c (bidi_find_paragraph_start): Callers of
find_newline_no_quit changed.
Eli Zaretskii [Wed, 6 Mar 2013 16:21:26 +0000 (18:21 +0200)]
Fix bug #13879 with raw-text encoding of msdos.c.
src/msdos.c: Change encoding to cp850. (Bug#13879)
(fr_keyboard, it_keyboard, dk_keyboard): Update keyboard layouts.
Alan Mackenzie [Wed, 6 Mar 2013 14:24:39 +0000 (14:24 +0000)]
Correct the position of point in some line-up functions.
progmodes/cc-align.el (c-lineup-whitesmith-in-block, c-lineup-assignments)
(c-lineup-gcc-asm-reg ): take position of point at column 0 rather than
at a random place in the line.
doc/misc/cc-mode.texi (Custom Line-Up): State explicitly that point
starts at a random position in the line being indented.
Glenn Morris [Wed, 6 Mar 2013 12:17:43 +0000 (07:17 -0500)]
Auto-commit of generated files.
Dmitry Antipov [Wed, 6 Mar 2013 11:26:30 +0000 (15:26 +0400)]
Coding system support cleanup and minor refactoring.
* coding.h (enum coding_result_code): Remove
CODING_RESULT_INCONSISTENT_EOL and CODING_RESULT_INSUFFICIENT_MEM.
(toplevel): Remove unused CODING_MODE_INHIBIT_INCONSISTENT_EOL.
(CODING_MODE_LAST_BLOCK, CODING_MODE_SELECTIVE_DISPLAY)
(CODING_MODE_DIRECTION, CODING_MODE_FIXED_DESTINATION)
(CODING_MODE_SAFE_ENCODING): Rearrange bit values.
(decode_coding_region, encode_coding_region, decode_coding_string):
Remove unused compatibility macros.
* coding.c (Qinconsistent_eol, Qinsufficient_memory): Remove.
(record_conversion_result): Adjust user.
(syms_of_coding): Likewise.
(ALLOC_CONVERSION_WORK_AREA): Use SAFE_ALLOCA.
(decode_coding, encode_coding): Add USE_SAFE_ALLOCA and SAFE_FREE.
(decode_coding_object): Simplify since xrealloc never returns NULL.
Add eassert.
Glenn Morris [Wed, 6 Mar 2013 11:17:39 +0000 (06:17 -0500)]
Auto-commit of generated files.
Glenn Morris [Wed, 6 Mar 2013 08:01:47 +0000 (00:01 -0800)]
Merge from emacs-24; up to 2012-12-25T11:37:21Z!dmantipov@yandex.ru
Paul Eggert [Wed, 6 Mar 2013 07:46:09 +0000 (23:46 -0800)]
Fix a build failure on OpenBSD 4.x and MirBSD.
* sysdep.c (list_system_processes): Make it a stub on all BSD_SYSTEM
hosts, except for DARWIN_OS and FreeBSD where it's been tested.
Fixes: debbugs:13881
Paul Eggert [Wed, 6 Mar 2013 06:26:55 +0000 (22:26 -0800)]
Mention GZIP_PROG in INSTALL.
Katsumi Yamaoka [Wed, 6 Mar 2013 03:55:49 +0000 (03:55 +0000)]
lisp/gnus/nndir.el (nndir-request-list): Remove 2nd argument passed to nnml-request-list (Bug#13873)
Dmitry Antipov [Tue, 5 Mar 2013 23:08:11 +0000 (03:08 +0400)]
* lisp.h (find_next_newline_no_quit): Rename to find_next_newline.
* xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
(get_visually_first_element, move_it_vertically_backward): Ajust users.
* bidi.c (bidi_find_paragraph_start): Likewise.
* indent.c (vmotion): Likewise.